package com.ruoyi.TestControls.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试控件对象 test_controls
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public class TestControls extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 文本框 */
    @Excel(name = "文本框")
    private String textbox;

    /** 文本域 */
    @Excel(name = "文本域")
    private String textarea;

    /** 日期控件 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期控件", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateControl;

    /** 图片上传 */
    @Excel(name = "图片上传")
    private String imageUpload;

    /** 文件上传 */
    @Excel(name = "文件上传")
    private String fileUpload;

    /** 富文本控件 */
    @Excel(name = "富文本控件")
    private String richText;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTextbox(String textbox) 
    {
        this.textbox = textbox;
    }

    public String getTextbox() 
    {
        return textbox;
    }
    public void setTextarea(String textarea) 
    {
        this.textarea = textarea;
    }

    public String getTextarea() 
    {
        return textarea;
    }
    public void setDateControl(Date dateControl) 
    {
        this.dateControl = dateControl;
    }

    public Date getDateControl() 
    {
        return dateControl;
    }
    public void setImageUpload(String imageUpload) 
    {
        this.imageUpload = imageUpload;
    }

    public String getImageUpload() 
    {
        return imageUpload;
    }
    public void setFileUpload(String fileUpload) 
    {
        this.fileUpload = fileUpload;
    }

    public String getFileUpload() 
    {
        return fileUpload;
    }
    public void setRichText(String richText) 
    {
        this.richText = richText;
    }

    public String getRichText() 
    {
        return richText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("textbox", getTextbox())
            .append("textarea", getTextarea())
            .append("dateControl", getDateControl())
            .append("imageUpload", getImageUpload())
            .append("fileUpload", getFileUpload())
            .append("richText", getRichText())
            .toString();
    }
}
